Entity framework : [Set all the entities with internal access specifier]

Posted by Vedaantees on Stack Overflow See other posts from Stack Overflow or by Vedaantees
Published on 2010-05-27T12:17:51Z Indexed on 2010/05/27 12:21 UTC
Read the original article Hit count: 298

Hi, By virtue of my application, I need to seperate my business entities from the entities created by EF4. I need to restrict the entities to only access the repository from where they are translated (using translator) to business entities shared at business and service layer. I thought of restricting them by specifying them as internal. Now there are more than 40 entities in my application so manually setting them as internal is a difficult job. In one of the forums the answers suggested using the T4 templates. But even those templates read from the entity framework access specifier. When I try to manually try to specify all the properties and class access specifiers as internal it gives me an error saying that the entity set should also be set to internal, but there is no option for the same. I am using VS 2010 and Entity Framework 4. Any suggestions???

© Stack Overflow or respective owner

Related posts about entity-framework

Related posts about entity